Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/ban format converter #442

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Feat/ban format converter #442

wants to merge 3 commits into from

Conversation

nkokla
Copy link
Contributor

@nkokla nkokla commented Jul 4, 2024

FOR test only

Add new script for test BAN Format conversion :

HOW to use :

Sample of CMD :
yarn exportban --config=bal ban_64102-TEST-BAYONNE.json ./output-test

This command will convert the file ban_64102-TEST-BAYONNE.json(in root of project) with the bal pre-configuration and save the result in a file into the ./output-test directory (this directory must exist).

usage : ban [--version] [-h | --help] [-c=<value> | --config=<value>] 
            <source file path> <destination file path> [-s | --silence | --quiet]
        ban [--version] [-h | --help] [-c=<value> | --config=<value>] 
            <source file path> <destination directory path> [-s | --silence | --quiet]

parameters :
   source file path            Path of the BAN files to convert
   destination file path       Path to the file in which the converted data will be saved.
   destination directory path  Path to the directory where the file with the converted data will be saved.

options :
   -v, --version           Display the version number
   -h, --help              Display this help.
   -c, --config            Name of the preconfiguration or path to the destination file configuration.
   -s, --silence, --quiet  The loader and processing information are not displayed during processing.

You can see HowTo get a BAN format file in the PR #437
OR use this attached file : ban_64102-TEST-BAYONNE-1.json

Next steps :

  • Use this feature from API
  • Use stream
  • Share and distribute the script as module/library

@nkokla nkokla force-pushed the feat/BAN-format-converter branch from 0630446 to c28a670 Compare July 4, 2024 14:59
@nkokla nkokla force-pushed the feat/BAN-format-converter branch from c28a670 to 9975c20 Compare December 11, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant